package com.cyclinggle.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.eureka.EurekaClientConfigBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class QueryController {
	
	@Autowired
	private EurekaClientConfigBean eurekaClientConfigBean;
	
	@GetMapping("/eureka-server")
	public Object getServerUrl() {
		return eurekaClientConfigBean.getServiceUrl();
	}

}
